package libra;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
public class LoadFile {
	/**
	 * 在Nacos整合SpringCloud之后
	 * 我们无法再通过@NacosValue获取配置属性值
	 * 只能使用@Value来进行配置属性值的获取、注入
	 */
	@Value("${a}")
	private String a;
	@Value("${b}")
	private String b;
	@Value("${c}")
	private String c;
	
	@Value("${key_cloudExt}")
	private String key_cloudExt;
	@Value("${key_cloudExt_prop}")
	private String key_cloudExt_prop;
	@Value("${key_cloudExt_dev_prop}")
	private String key_cloudExt_dev_prop;
	
	@Value("${key_extension}")
	private String key_extension;
	@Value("${key_shared}")
	private String key_shared;
	@Value("${from}")
	private String from;
	
	public String getA() {
		return a;
	}
	public void setA(String a) {
		this.a = a;
	}
	public String getB() {
		return b;
	}
	public void setB(String b) {
		this.b = b;
	}
	public String getC() {
		return c;
	}
	public void setC(String c) {
		this.c = c;
	}
	public String getKey_cloudExt() {
		return key_cloudExt;
	}
	public void setKey_cloudExt(String key_cloudExt) {
		this.key_cloudExt = key_cloudExt;
	}
	public String getKey_cloudExt_prop() {
		return key_cloudExt_prop;
	}
	public void setKey_cloudExt_prop(String key_cloudExt_prop) {
		this.key_cloudExt_prop = key_cloudExt_prop;
	}
	public String getKey_cloudExt_dev_prop() {
		return key_cloudExt_dev_prop;
	}
	public void setKey_cloudExt_dev_prop(String key_cloudExt_dev_prop) {
		this.key_cloudExt_dev_prop = key_cloudExt_dev_prop;
	}
	public String getKey_extension() {
		return key_extension;
	}
	public void setKey_extension(String key_extension) {
		this.key_extension = key_extension;
	}
	public String getKey_shared() {
		return key_shared;
	}
	public void setKey_shared(String key_shared) {
		this.key_shared = key_shared;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
}
